import request from '@/utils/request';

// 增员列表
export async function increasePersonnelList(params) {
  return request(`/nsApi/sendAdd/page`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 发单减员员详情
// 详情中的基本信息
export async function orderDetails(params) {
  return request(`/nsApi/sendDedu/querySendOrdDetail`, {
    method: 'POST',
    body: params,
  });
}
// 增员字典
export async function AccusearrchDicList(params) {
  return request(`/osApi/mdm/nmDict/queryDictItemsByCodes`, {
    method: 'POST',
    body: params,
  });
}

// 增员发单
export async function finvoicefile(params) {
  return request(`/nsApi/sendAdd/sendOrdAddInfo/push/recvService`, {
    method: 'POST',
    body: params,
  });
}

// 关联协议
export async function relationxiList(params) {
  return request(`/nsApi/sendAdd/querySend`, {
    method: 'POST',
    body: params,
  });
}

// 新建协议
export async function subAgreement(params) {
  return request(`/nsApi/suppProto/insert`, {
    method: 'POST',
    body: params,
  });
}

// 增员关联人数
export async function relationNumber(params) {
  return request(`/nsApi/sendAdd/match/count`, {
    method: 'POST',
    body: params,
  });
}

// 页签查询
export async function getTagList(params) {
  return request(`/nsApi/sendAdd/count/isHasData`, {
    method: 'POST',
    body: params,
  });
}

// 获取供应商.
export async function fetchSupplierList(params) {
  return request(`/nsApi/suppBusiScope/suppNameListByBusi `, {
    method: 'POST',
    body: params,
  });
}

// 获取供应商协议
export async function agreementList(params) {
  return request(`/nsApi/suppProto/pageList`, {
    method: 'POST',
    body: params,
  });
}

// 发单
export async function invoicList(params) {
  return request(`/nsApi/sendAdd/sendAdd`, {
    method: 'POST',
    body: params,
  });
}

// 减员列表
export async function reduceemployeeList(params) {
  return request(`/nsApi/sendDedu/page`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 减员详情
export async function reduceemployeeDetail(params) {
  return request(`/nsApi/sendDedu/querySendOrdDetail`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 问题人员列表
export async function getProList(params) {
  return request(`/nsApi/sendProb/page`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 问题人员详情中的基本信息
export async function getProDetail(params) {
  return request(`/nsApi/sendProb/detail`, {
    method: 'POST',
    body: params,
  });
}
// 问题人员详情中的反馈和标记
export async function getFeedback(params) {
  return request(`/nsApi/sendProb/createFdbk`, {
    method: 'POST',
    body: params,
  });
}

// 发单管理
// 减员列表：页签数量
export async function empTabNum(params) {
  return request(`/nsApi/sendDedu/count/isHasData`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 减员列表：发单
export async function sendTask(params) {
  return request(`/nsApi/sendDedu/deduTask/push`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 发单增员详情：
export async function getSendAddEmpDetail(params) {
  return request(`/nsApi/sendAdd/querySendOrdDetail`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 发单增员详情 缴纳明细
export async function getPayDetail(params) {
  return request(`/nsApi/sendAdd/queryPayDetail`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
